package com.example.demo.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @AUTHOR LYF
 * @DATE 2022/2/15
 * @VERSION 1.0
 * @DESC
 */
@RestController
public class TestController {
    Logger logger = LogManager.getLogger(LogManager.ROOT_LOGGER_NAME);
    @RequestMapping("/demo/test")
    String test(){
        logger.error("--------------==========hello================");
        return "hello test successfully";
    }
}
